using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace InyDia
{
    public partial class fAnalisis : Form
    {
        public fAnalisis()
        {
            InitializeComponent();
        }

        private void p_Click(object sender, EventArgs e)
        {
            Button bPulsado = sender as Button;
            PictureBox img = (PictureBox)BuscaControl("PictureBox" + bPulsado.Tag.ToString());

           // img.Image.Height = 200;

            Button btnEdit = BuscaControl("pe" + bPulsado.Tag.ToString()) as Button;
            btnEdit.Enabled = true;

            //MessageBox.Show(bPulsado.Tag.ToString());
        }

        private void pEdit_Click(object sender, EventArgs e)
        {
            //Button bPulsado = sender as Button;
            //MessageBox.Show(bPulsado.Tag.ToString());
        }

        private Control BuscaControl(string name)
        {
            return this.Controls.Find(name, true)[0];
        }
    }
}